@extends('plugin.layout.base')
@section('add_css')

@endsection
@section('content')
    @include('plugin.'.$controller_base_lower.'.form')
    @include('plugin.layout.table')
@endsection
@section('foot_js')
    @include('plugin.layout.ListConfig')
    <script>
        listConfig.open_height = '600px';
        listConfig.open_width = '800px';
        layui.use(['index', 'listTable'], function () {
            var $ = layui.$
                , listTable = layui.listTable;

            cols = [[
                {type: 'checkbox'}
                , {field: 'id', width: 80, title: 'ID', sort: true}
                , {field: 'card_number', title: '卡号', width: 220}
                , {field: 'money', title: '面额', width: 120}
                , {field: 'invalid_at', title: '过期时间'}
                , {field: 'user_name', title: '会员'}
                , {field: 'user_at', title: '使用时间'}
                , {title: '操作', minWidth: 150, align: 'center', toolbar: '#tpl-create-edit'}
            ]]
            //渲染
            listTable.render(listConfig.index_url, cols);
            //监听搜索
            listTable.search();


        });
    </script>
@endsection